package com.five.community.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Complaint {

//    id INT PRIMARY KEY auto_increment COMMENT '编号',
//    vid INT NOT NULL  COMMENT '小区编号',
//    name VARCHAR(20) NOT NULL COMMENT '投诉人员',
//    complaint_name VARCHAR(20) NOT NULL COMMENT '投诉 名称',
//    complaint_cause VARCHAR(20) NOT NULL COMMENT '投诉事由',
//    create_date TIMESTAMP NOT NULL COMMENT '创建时间',
//    state TINYINT NOT NULL COMMENT '状态，0=可用，1=禁用',
    private long id;
    private long vid;
    private String name;
    private String complaintName;
    private String complaintCause;
    private Date createDate;
    private boolean state;

    public Complaint(long vid, String name, String complaintName, String complaintCause, Date createDate, boolean state) {
        this.vid = vid;
        this.name = name;
        this.complaintName = complaintName;
        this.complaintCause = complaintCause;
        this.createDate = createDate;
        this.state = state;
    }
}
